Skip to content

Adjust Variant size expectation for s390x architecture#10027

Merged
alamb merged 1 commit into
apache:mainfrom
frantisekz:s390x_parquet
Jun 2, 2026
Merged

Adjust Variant size expectation for s390x architecture#10027
alamb merged 1 commit into
apache:mainfrom
frantisekz:s390x_parquet

Conversation

@frantisekz
Copy link
Copy Markdown

Which issue does this PR close?

Rationale for this change

The Variant enum has a different size on s390x (72 bytes) compared to other 64-bit architectures (80 bytes) due to architecture-specific alignment and padding requirements.

What changes are included in this PR?

This change adds a conditional compilation check to expect 72 bytes on s390x while maintaining the existing 80-byte expectation for other 64-bit platforms. This ensures the size check passes on s390x without compromising the performance validation on other architectures.

Are these changes tested?

Build-time test only

Are there any user-facing changes?

N/A

The Variant enum has a different size on s390x (72 bytes) compared to
other 64-bit architectures (80 bytes) due to architecture-specific
alignment and padding requirements.

This change adds a conditional compilation check to expect 72 bytes
on s390x while maintaining the existing 80-byte expectation for other
64-bit platforms. This ensures the size check passes on s390x without
compromising the performance validation on other architectures.

Signed-off-by: František Zatloukal <fzatlouk@redhat.com>
@github-actions github-actions Bot added the parquet-variant parquet-variant* crates label May 27, 2026
Copy link
Copy Markdown
Member

@klion26 klion26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the contribution!

Copy link
Copy Markdown
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @frantisekz and @klion26

@alamb alamb merged commit 6881f73 into apache:main Jun 2, 2026
17 checks passed
Rich-T-kid pushed a commit to Rich-T-kid/arrow-rs that referenced this pull request Jun 2, 2026
# Which issue does this PR close?
- Closes apache#10026 .

# Rationale for this change

The Variant enum has a different size on s390x (72 bytes) compared to
other 64-bit architectures (80 bytes) due to architecture-specific
alignment and padding requirements.

# What changes are included in this PR?

This change adds a conditional compilation check to expect 72 bytes on
s390x while maintaining the existing 80-byte expectation for other
64-bit platforms. This ensures the size check passes on s390x without
compromising the performance validation on other architectures.

# Are these changes tested?

Build-time test only

# Are there any user-facing changes?

N/A

Signed-off-by: František Zatloukal <fzatlouk@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

parquet-variant parquet-variant* crates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

parquet-variant build might fail on s390x

3 participants